export interface Itodo{
     id:number;
     content:string;
     completed:boolean;
}

export interface IState{
    todoList: Itodo[]
}

export interface IAction {
     type:ACTION_TYPE,
     payload:Itodo | Itodo[] | number | boolean
}
export enum ACTION_TYPE {
      ADD_TODO = 'addTodo',
      REMOVE_TODO = 'removeTodo',
      TOGGLE_TODO = 'toggleTodo',
      INIT_TODO = 'initTodo'
}